package syn;

import java.util.concurrent.CopyOnWriteArrayList;

//测试JUC 安全类型的集合
public class TestJUC {
    public static void main(String[] args) {
        CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();
        for (int i = 0; i < 10000; i++) {
            new Thread(()->{

            }).start();
        }
    }
}
